package com.netease.service;

import com.huaban.analysis.jieba.JiebaSegmenter;
import com.netease.entity.DataElementTable;
import com.netease.entity.Word;
import com.netease.pojo.StandardFieldInfo;
import com.netease.pojo.WordSegmentLog;

import java.util.List;

/**
 * 数据元素生成服务
 *
 * @author aochong
 * @date 2022/12/19
 */
public interface StandFieldService {
    /**
     * 构建标准字段接口
     *
     * @param text 文本
     * @return {@link String}
     */
    public List<Word> builderStandField(String text, JiebaSegmenter segmenter) throws Exception;

    /**
     * @param dataElementTable:
     * @param segmenter:
     * @return List<DataElementTable>
     * @author aochong
     * @description 分词翻译接口
     * @date 2023/4/10 15:18
     */
    public List<DataElementTable> segmentWordTranslation(DataElementTable dataElementTable, JiebaSegmenter segmenter);

    /**
     * @param standardFieldInfo:
     * @return void
     * @author aochong
     * @description 插入标准字段
     * @date 2023/4/10 15:40
     */
    public void insertStandField(StandardFieldInfo standardFieldInfo);

    /**
     * @param standardFieldInfo:
     * @return boolean
     * @author aochong
     * @description 查询标准字段是否存在
     * @date 2023/4/10 15:43
     */
    public boolean queryStandFieldIsExists(StandardFieldInfo standardFieldInfo);
}
